home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Files / Volumes / VolumeLoop.h < prev   
Text File  |  2000-06-23  |  559b  |  34 lines

  1. // VolumeLoop.h
  2.  
  3. #ifndef VolumeLoop_h
  4. #define VolumeLoop_h
  5.  
  6. #ifndef VolumeInfo_h
  7. #include "VolumeInfo.h"
  8. #endif
  9.  
  10. class VolumeLoop
  11.   {
  12.     private:
  13.         uint16 index;
  14.         bool unfinished;
  15.         
  16.         VolumeInfo info;
  17.     
  18.         void GetInfo();
  19.         
  20.     public:
  21.         VolumeLoop();
  22.         
  23.         bool Finished() const                        { return !unfinished; }
  24.         bool Unfinished() const                        { return unfinished; }
  25.         
  26.         void operator++();
  27.         void operator++(int)                            { operator++(); }
  28.         
  29.         const VolumeInfo& operator*() const        { return info; }
  30.         const VolumeInfo *operator->() const    { return &info; }
  31.   };
  32.  
  33. #endif
  34.